home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / gfx / conv / gfx2grob.lha / gfx2grob / src / gfx2grob.h < prev    next >
C/C++ Source or Header  |  1994-11-20  |  965b  |  54 lines

  1. #ifndef GFX2GROB_H
  2. #define GFX2GROB_H
  3.  
  4.  
  5. #include <stdio.h>
  6.  
  7.  
  8. #ifndef EXIT_FAILURE
  9. #define EXIT_FAILURE 10
  10. #endif
  11.  
  12. #define MAXNAMESIZE      80            /* buffer for filenames */
  13. #define DEFAULDWIDTH      131
  14. #define DEFAULDWIDTHSTR  "131"
  15. #define DEFAULDHEIGHT      64
  16. #define DEFAULDHEIGHTSTR "64"
  17.  
  18.  
  19. typedef unsigned char u_char;
  20. typedef unsigned int  u_int;
  21.  
  22. #undef FALSE
  23. #undef TRUE
  24. typedef enum { FALSE = (0 == 1),
  25.            TRUE = (0 == 0)
  26.          } boolean;
  27.  
  28. typedef enum { OT_NOONE,
  29.            OT_TOASCII,
  30.            OT_TOBIN
  31. #ifdef AMIGA
  32.          , OT_TOIFF
  33. #endif
  34.          } OptionType;
  35.  
  36. typedef struct { char *InputfileName,
  37.               *OutputfileName,
  38.               NewOutputfileName[MAXNAMESIZE];
  39.          OptionType Option;
  40.          int Width,
  41.              Height;
  42.            } OptionsType;
  43.  
  44. typedef struct { OptionsType Options;
  45.          FILE *Inputfile,
  46.               *Outputfile;
  47.            } gvType;        /* global vars */
  48.  
  49.  
  50. extern const char NULLSTR[];  /* #define NULLSTR "": !always same address  */
  51.  
  52.  
  53. #endif /* GFX2GROB_H */
  54.